package org.komarichin.struts2.beans;

import org.komarichin.beans.IRole;
import org.komarichin.beans.IUser;


/**
 * User: Michael Komarichin
 * Date: 01.10.2009
 * Time: 13:16:29
 */
public class Customer implements ICustomer {
    private IRole role;
    private IUser user;

    public Customer(IUser user, IRole role) {
        this.role = role;
        this.user = user;
    }

    @Override
    public String getLogin() {
        return user.getLogin();
    }

    @Override
    public IUser getUser() {
        return user;
    }

    @Override
    public IRole getRole() {
        return role;
    }
}
